<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>align-self 和 order 属性</title>
    <style>
        section {
            display: flex;
            width: 80%;
            height: 450px;
            background-color: pink;
        }

        section div {
            width: 20%;
            height: 150px;
            background-color: skyblue;
            margin-right: 10px;
        }

        /* 让section里的第三个div单独从下向上排列 */
        section div:nth-child(3) {
            align-self: flex-end;
        }

        /* 不改变div顺序，让第二个div到第一个前面 */
        /* order默认是0 */
        section div:nth-child(2) {
            order: -1;
        }
    </style>
</head>

<body>
    <section>
        <div>1</div>
        <div>2</div>
        <div>3</div>
    </section>
</body>

</html>